what is the output of this tricky JS code